package com.solomon.travel.common.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.solomon.travel.common.mapper.MessageMapper;
import com.solomon.travel.common.model.Page;
import com.solomon.travel.common.po.Message;
import com.solomon.travel.common.service.MessageService;

@Service
public class MessageServiceImpl implements MessageService {
	
	@Resource
	private MessageMapper messageMapper;

	@Override
	public int messageAll(Message message) {
		return messageMapper.insertSelective(message);
	}

	@Override
	public int messageToUser(Message message) {
		return messageMapper.insertSelective(message);
	}

	@Override
	public int messageToType(Message message) {
		return messageMapper.insertSelective(message);
	}

	@Override
	public List<Message> listSendMsg(String userId, Page page) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Message> listReceiveMsg(String userId, Page page) {
		// TODO Auto-generated method stub
		return null;
	}

}
